//
//  AppDelegate.m
//  WeChat
//
//  Created by 方桥 on 16/5/10.
//  Copyright © 2016年 方桥. All rights reserved.
//

#import "AppDelegate.h"
//#import "DDLog.h"
//#import "DDTTYLogger.h"


@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    if ([FQAccount shareAccount].isLogin) {//已经登录
        id mainVc = [UIStoryboard storyboardWithName:@"Main" bundle:nil].instantiateInitialViewController;
        self.window.rootViewController = mainVc;
        
//        //配置XMPP的日志
//        [DDLog addLogger:[DDTTYLogger sharedInstance]];
        
        //自动登录
        [[FQXmppTool sharedFQXmppTool] xmppLogin:nil];
    }
    return YES;
}


@end
